
@import '@/styles/common/variables.scss';
.search_module{
  padding: $menuHeight 0 0;
  text-align: center;
  // pc端
  .pcShow{
    display: block;
    .search_input{
      width: 66.6%;;
      margin: 64px auto 24px ;
      .el-input__inner{
        height: 56px;
        line-height: 56px;
        border-radius: 8px;
        padding: 0 72px;
        font-size: 18px;
      
      }
      .el-input__prefix{
        left: 24px;
        .iconfont{
          line-height: 56px;
          font-size: 24px;
        }
      }
      .el-input__suffix{
        right: 24px;
        .el-input__suffix-inner{
          line-height: 56px;
        }
      }
    }
    .search_category{
      position: sticky;
      top: $menuHeight;
      >p{
        font-size: 20px;
        line-height: 80px;
        margin-right: 64px;

      }
    }
    .search_res{
      width: $homeW;
      padding-bottom: 56px;
      >div{
        >.total{
          height: 28px;
          margin: 40px 0 12px;
          line-height: 28px;
        }
      }
    }
    .download_table{
      padding-bottom: 56px;
      .download_table_div{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 40px 0 12px;
        .download_table_title{
          color: #CDCDCD;
          font-size: 14px;
        }
        .el-select {
          .el-input__inner{
            padding-right: 20px;
            border: none;
            text-align: right;
            color: $mainColor;
            font-size: 14px;
            right: 6px;
            position: relative;
            height: 28px;
            line-height: 28px;
            &::-webkit-input-placeholder { /* WebKit browsers */
              color: $mainColor;
              font-size: 14px;
              font-weight: 700;
            }
            &::-moz-placeholder { /* Mozilla Firefox 19+ */
              color: $mainColor;
              font-size: 14px;
              font-weight: 700;
            }
            &:-ms-input-placeholder { /* Internet Explorer 10+ */
              color: $mainColor;
              font-size: 14px;
              font-weight: 700;
            }
          }
          .el-select__caret{
            color: $mainColor;  
            opacity: 1;
            width: 14px;
            font-family: 'iconfont' !important;
            transform: rotateZ(90deg);
            
            &.is-reverse{
              transform: rotateZ(270deg);
            }
            &::before{
              content: '\e8a6';
            }
          }
          .el-input__suffix,
          .el-input__prefix{
            right: 0;
          }
          .popper__arrow{
            left: calc(100% - 35px) !important;
          }
          .el-input__icon{
            line-height: 28px;
          }
        }
      }
      .table{
        .table_th{
          display: flex;
          align-items: center;
          height: 64px;
          background-color: #F9F9F9;
          p{
            color: $mainColor;
            border-bottom: none;
            font-size: 16px ;
            font-family: 700;
            word-break: break-word;
            line-height: 1;
            text-align: center;
            padding: 0 12px 0 24px;
            font-weight: 700;
          }
        }
        .table_td{
          position: relative;
          border-bottom: 1px solid #F2F1F0;
          height: auto;
       
          .table_td_content{
            display: flex;
            align-items: center;
            height: 72px;
            &:hover{
              p{
                color: $mainColor;   
              }
              .icon-plus{
                color: $mainColor;   
              }
            }
          }
          p{
            padding: 0;
            word-break: break-word;
            padding:  0 24px;
            color: #7E7E7E;
            font-size: 16px;
            text-align: center;
            &:hover{
              color: $mainColor;   
            }
          }
         
          .icon-Download{
            font-size: 20px;
            color: #1890FF;
            cursor: pointer;
            &:hover{
              color: #1d86d4;
            }
          }
          .table_expand{
            span{
              -webkit-transform: rotate(90deg);
              transform: rotate(90deg);
              transition: transform .3s ease-in-out;
              display: inline-block;
            }
            .icon-plus{
              font-size: 20px;
              cursor: pointer;
              color: #7E7E7E;
              &:hover{
                color: $mainColor;
              }
            }
          }
          .expand_details{
            height: 0;
            overflow: hidden;
            transition: all .3s ease-in-out;
            opacity: 0;
            font-size: 0;
            padding: 0;
            p{
              text-align: left;
              color: #7e7e7e;
              font-size: 16px;
              white-space: break-spaces;
             
            }
          }
          &.details_show{
            height: auto;
            .table_td_content{
              p{
                color: $mainColor;
              }
            }
            .table_expand{
              span{
                -webkit-transform: rotate(180deg);
                transform: rotate(180deg);
                transition: transform .3s ease-in-out;
                display: inline-block;
              }
              .icon-plus{
                color: $mainColor;
                &::before{
                  content: '\e871';
                }
              }
            }
            .expand_details{
              opacity: 1;
              height: auto;
              background-color: #FBFBFB;
              padding: 24px 0;
            }
            
          }
        }
        .table_th, .table_td{
          .table_name{width: 23%;    text-align: left;   }
          .table_version{width: 12%;}
          .table_ealease_date{width: 15%;}
          .table_memory_size{width: 12%;}
          .table_category{width: 19%;  text-align: left; }
          .table_download{width: 12%;}
          // .table_expand{width: 1%;}
        }
      }
     
      
    }
    // 文章
    .search_article{
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 32px;
      cursor: pointer;
      >div{
        width: 84%;
        text-align: left;
        margin-right: 40px;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        .artilce_start{
          height: 0;
          padding-bottom: 12%;
          position: relative;
          width: 100%;
          min-height: 140px;
        }
     
        .artilce_title{
          font-size: 20px;
          font-weight: 700;
        }
        .artilce_description{
          margin: 8px 0 24px;
        }
        .article_other{
          color: #CDCDCD;
          font-size: 14px;
          margin-bottom: 20px;
          .iconfont{
            color: #CDCDCD;
            font-size: 14px;
          }
          .view_num{
            margin: 0 24px 0 6px ;
  
          }
  
        }
     
      }
      .article_img{
        width: 16%;
        padding-bottom: 12%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        transition: .6s ease-in-out;
        &:hover{
          transform: scale(1.12);
        }
      }
      .article_btn{
        color: #7e7e7e;
        .iconfont{
          color: #7e7e7e;
          position: relative;
          right: 0;
          transition: all .2s ease-out;
        }
        &:hover{
          color: $mainColor;
          .icon-arrow_1{
            color: $mainColor;
            margin-left: 6px;
            right: -5px;
          }
        }
      }
    }
    // 产品
    .productContent{
      text-align: left;
        white-space: break-spaces;
      .productItem{
        width: calc((100% - 2.25%*3) / 4);
        margin-right: 2.25%;
        padding-bottom: 0;
        // margin-bottom: 24px;
        &:nth-of-type(4n){
          margin-right: 0;
          margin-bottom: 24px;
        }
      }
    }
    .table_more{
      padding-top: 32px;
    }
    .no_data{
      padding-top: 67px;
    }
  
  }
  // 手机端
  .phoneShow{
    display: none;
    .search_input{
      width: 100%;
      padding: 0 20px;
      margin: 20px auto 8px ;
      .el-input__inner{
        height: 44px;
        line-height: 44px;
        border-radius: 4px;
        padding: 0 40px;
        font-size: 14px;
     
      }
      .el-input__prefix{
        left: 12px;
        .iconfont{
          line-height: 44px;
          font-size: 20px;
        }
      }
      .el-input__suffix{
        right: 12px;
        .el-input__suffix-inner{
          line-height: 44px;
        }
      }
    }
    .search_category{
      text-align: left;
      padding: 0 20px;
      position: sticky;
      top: $menuPhoneHeight;
      >p{
        font-size: 14px;
        line-height: 44px;
        margin-right: 16px;

      }
    }
    .search_res{
      padding: 0 20px 40px;
      >div{
        >.total{
          height: 22px;
          margin: 12px 0 12px;
          line-height: 22px;
        }
      }
    }
    .search_product{
      display: flex;
      align-items: center;
      justify-content: flex-start;
      border-bottom: 1px solid #F2F1F0;
      padding: 16px 0;
      &:last-of-type{
        border-bottom: none;
        padding-bottom: 0;
      }
      &:first-of-type{
        padding-top: 0;
      }
      .product_img{
        width: 30%;
        padding-bottom: 30%;
        height: 0;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;

      }
      >div{
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: column;
        width: 70%;
        margin-left: 16px;
        .product_title{
          height: 0;
          padding-bottom: 30%;
          position: relative;
          width: 100%;
          color: $mainColor;
          font-size: 16px;
          word-break: break-word;
          white-space: break-spaces;
          text-align: left;
        }
        .product_btn{
          color: $mainColor;
          font-size: 14px;
          .icon-arrow_1{
            font-size: 12px;
            color: $mainColor;
            margin-left: 4px;
          }
        }
      }


    }
    .search_article{
      text-align: left;
      border-bottom: 1px solid #F2F1F0;
      padding: 16px 0;
      &:last-of-type{
        border-bottom: none;
        padding-bottom: 0;
      }
      &:first-of-type{
        padding-top: 0;
      }
      .artilce_title{
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        width: 100%;
        white-space: break-spaces;
        word-break: break-word;
      }
      .artilce_description{
        margin: 4px 0 16px;

      }
      .article_btn{
        .icon-arrow_1{
          font-size: 12px;
          margin-left: 2px;
          transition: all .2s ease-out;
        }
       

      }

    }
    .table_more{
      padding-top: 24px;
    }
    .no_data{
      padding-top: 40px;
    }
  }

}
// 公共模块
.search_module{
  .search_input{
    .el-input__inner{
      border-color: #CDCDCD;
      &:focus{  
        border-color: $mainColor;
      }
    }

    .el-input__prefix{
      .iconfont {
        color: #CDCDCD;
        cursor: pointer;
        &::before{
          color: #CDCDCD; 
        }
        &:hover{
          &::before{
            color: $mainColor;
          }
        }
      }
      
    }
    .el-input__suffix{
      .icon-no_normal{
        color: #CDCDCD;
        font-size: 16px;
        cursor: pointer;
        &:hover{
          &::before{
            color: $mainColor;
          }
        }
      }
      
    
    }
  }
  .search_category{
    height: 100%;
    border-bottom: 1px solid #F2F1F0;
    white-space: nowrap;
    background-color: #FfFFFF;
    z-index: 10;
    &:hover{
      >p{
        color: #7e7e7e;
      }
    }
    >p{
      color: $mainColor;
      cursor: pointer;
      display: inline-block;
      height: 100%;
      position: relative;
      &::after{
        content: '';
        position: absolute;
        height: 2px;
        width: 100%;
        background: #7e7e7e;
        bottom: 0;
        left: 0;
        z-index: 10;
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
        -webkit-transition: .3s ease-out;
        transition: .3s ease-out;
      }
      &.active{
        color: $mainColor;
        &::after{
          background: $mainColor;
          -webkit-transform: scaleX(1);
          transform: scaleX(1);
        }
        &:hover{
          color: $mainColor;
        }
      }
      &:hover{
        color: #7e7e7e;
        &::after{
          -webkit-transform: scaleX(1);
          transform: scaleX(1);
        }
      }
    }
  }
  .search_res{
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    >div{
      width: 100%;
      display: inline-block;
      >.total{
        color: #CDCDCD;
        font-size: 14px;
        text-align: left;
      }
    }
  }
  .search_article{
    .artilce_title{
      color: $mainColor;
    }
    .artilce_description{
      color: #7E7E7E;
      font-size: 14px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      overflow: hidden;
      width: 100%;
      white-space: break-spaces;
      word-break: break-word;
    }
    .article_btn{
      color: $mainColor;
      font-size: 14px;
      margin-right: 8px;
      cursor: pointer;
      .icon-arrow_1{
        // font-size: 12px;
        color: $mainColor;
        cursor: pointer;
      }
      
    }
  }
  .table_more{
    text-align: center;
    span{
      color: #1890FF;
      font-size: 16px;
      cursor: pointer;
      &:hover{
        color: #1d86d4;
      }
    }
   
    i{
      font-size: 20px;
      color: #1890FF;
      cursor: pointer;
      &:hover{
        color: #1d86d4;
      }
    }
   
  }
    // 无数据
    .no_data{
      color: #7e7e7e;
      font-size: 14px;
     text-align: center;

    }
}
.search_module{
  @include respond('768'){
    padding: $menuPhoneHeight 0 0;
    .phoneShow{
      display: block;
    }
    .pcShow{
      display: none;
    }
  }
}

.el-autocomplete-suggestion{
  border: none;
  box-shadow: 0 0 8px 0  rgba(54, 52, 52, 0.08);
  li{
    // height: 56px;
    // line-height: 56px;
    padding:  16px 24px ;
    color: #7E7E7E;
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
    word-break: break-word;
    white-space: break-spaces;
    &:hover{
      background-color: #F9F9F9;
      color: $mainColor;
    }
    .keyword{
      color: $mainColor;
      font-weight: bolder;
    }
  }
} 



.download_table_select{
  &.el-popper[x-placement^="bottom"] .popper__arrow{
    left: calc(100% - 16px) !important;
   }
   &.el-popper[x-placement^="bottom"] {
     margin-top: 4px;
   }
  .el-select-dropdown__item{
    text-align: left;
    color: #7e7e7e;
    &.selected{
      font-weight: normal;
      color: $mainColor;
    }
    &:hover{
      color: $mainColor;
    }
    &:hover,
    &.hover{
      background-color: #ffffff;
    }
  } 

}


// 产品的动画 pc
.search_module .productContent{
  .productItem{
    opacity: 0.7;
  
    -webkit-transition: -webkit-transform ease .6s;
    transition: -webkit-transform ease .6s;
    -o-transition: -o-transform ease .6s;
    -moz-transition: transform ease .6s,-moz-transform ease .6s;
    transition: transform ease .6s;
    transition: transform ease .6s,-webkit-transform ease .6s,-moz-transform ease .6s,-o-transform ease .6s;
    transition: transform ease .6s,-webkit-transform ease .6s;
    &:nth-of-type(4n + 1){
      -webkit-transform: translateY(50px);
      -moz-transform: translateY(50px);
      -ms-transform: translateY(50px);
      -o-transform: translateY(50px);
      transform: translateY(50px);
    }
    &:nth-of-type(4n + 2){
      -webkit-transform: translateY(100px);
      -moz-transform: translateY(100px);
      -ms-transform: translateY(100px);
      -o-transform: translateY(100px);
      transform: translateY(100px);
    }
    &:nth-of-type(4n +3 ){
      -webkit-transform: translateY(150px);
      -moz-transform: translateY(150px);
      -ms-transform: translateY(150px);
      -o-transform: translateY(150px);
      transform: translateY(150px);
    }
    &:nth-of-type(4n + 4 ){
      -webkit-transform: translateY(200px);
      -moz-transform: translateY(200px);
      -ms-transform: translateY(200px);
      -o-transform: translateY(200px);
      transform: translateY(200px);
    }
    &.visible{
      opacity: 1;
      -webkit-transform: translateY(0);
      -moz-transform: translateY(0);
      -ms-transform: translateY(0px);
      -o-transform: translateY(0px);
      transform: translateY(0px);
    }
  }
}

// 产品  动画 phone  文章动画
.search_article,
.search_product {
  -webkit-transform: translateY(50px);
  -moz-transform: translateY(50px);
  -ms-transform: translateY(50px);
  -o-transform: translateY(50px);
  transform: translateY(50px);
  -webkit-transition: -webkit-transform ease .6s;
  transition: -webkit-transform ease .6s;
  -o-transition: -o-transform ease .6s;
  -moz-transition: transform ease .6s,-moz-transform ease .6s;
  transition: transform ease .6s;
  transition: transform ease .6s,-webkit-transform ease .6s,-moz-transform ease .6s,-o-transform ease .6s;
  transition: transform ease .6s,-webkit-transform ease .6s;
  opacity: 0.7;
  &.visible{
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0px);
    -o-transform: translateY(0px);
    transform: translateY(0px);
  }
  
}

